package routers

import (
	"Trace/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/getAllFoods", &controllers.FoodController{}, "get:GetAllFoods")
	beego.Router("/getUserAddress", &controllers.UserController{}, "get:GetUserAddress")
	beego.Router("/getFood", &controllers.FoodController{}, "get:GetFood")
	beego.Router("/getTraceById", &controllers.TraceController{}, "get:GetTraceById")
	beego.Router("/newFood", &controllers.FoodController{}, "post:NewFood")
	beego.Router("/addTraceInfoByRetailer", &controllers.TraceController{}, "post:AddTraceInfoByRetailer")
	beego.Router("/addTraceInfoByDistributor", &controllers.TraceController{}, "post:AddTraceInfoByDistributor")
}
